package com.five.community.mapper;

import com.five.community.bean.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper {

    // 插入数据
    void insert(Permission permission) throws Exception;

    // 更新数据
    void update(Permission permission) throws Exception;

    // 查询全部数据
    List<Permission> selectAll() throws Exception;

    // 根据编号查询
    Permission selectById(long id) throws Exception;

    // 根据编号删除
    void deleteById(long id) throws Exception;

    // 根据编号查询名称
    String selectNameById(Long rolePermissionId) throws Exception;
}
